<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header">
	<th:block th:include="include :: select2-css" />
	<th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-elevatorModel-add">
			<div class="form-group">
				<label class="col-sm-3 control-label">品牌名称：</label>
				<div class="col-sm-8">
					<select id="brandId" name="brandId" class="form-control" >
						<option value="">请选择电梯品牌</option>
						<option th:each="elevatorBrand:${elevatorBrandList}" th:value="${elevatorBrand.brandId}" th:text="${elevatorBrand.brandName}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">型号名称：</label>
				<div class="col-sm-8">
					<input id="modelName" name="modelName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" rows="5" class="form-control"></textarea>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
	<th:block th:include="include :: select2-js" />
	<th:block th:include="include :: ztree-js" />
    <script type="text/javascript">
		var prefix = ctx + "business/elevatorModel"
		$("#form-elevatorModel-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-elevatorModel-add').serialize());
	        }
	    }
	</script>
</body>
</html>
